<?php
header("Content-Type:text/html;charset=utf-8");
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我要表白网</title>
<link rel="shortcut icon" href="../img/favicon.ico" /> 
<link rel="stylesheet" type="text/css" href="../css/register.css" />
<link rel="stylesheet" type="text/css" href="../css/user_center.css" />
<script src="../js/basic.js"></script>
<script src="../js/json2.js"></script>
<script src="../js/login.js"></script>
<script src="../js/user_center.js"></script>
</head>

<body>
<?php
	$user=$_SESSION["login"];
	if($_SESSION["login"]==""){
		echo "<script type='text/javascript'>login_session();</script>";
	}
?>
<div id="logo">
<img src="../img/reg_logo.png" />
<span style="font-size:18px;color:#fff;position:absolute;right:200px;top:23px;">还等什么?向我表白吧</span>
<img src="../img/logo_face.png" style="position:absolute;right:0px;top:0px;"/>
</div>
<div id="content">
	<p>
		<button onclick="new_sub()">写表白书</button><span class="ctrl"><span id="user_id"><?=$user?></span><a href="javascript:change_psd('<?=$user?>')">修改密码</a><a href="javascript:logout();">注销</a></span>
	</p>
	<div id="liebiao">
		<table cellpadding="0" cellspacing="0">
			<thead>
				<th style="width:500px;">文章标题</th>
				<th style="width:200px;">创建时间</th>
				<th style="width:200px;" colspan="3">操作</th>
			</thead>
			<tbody id="liebiao_tbody">
			</tbody>
		</table>
	</div>
	<div id="xiugai_password">
		<p style="text-align:right" id="form_tishi"></p>
		<form name="psd">
			<fieldset>
				<p>
					<label><span>输入旧密码</span><input type="password"  name="old_psd" /></label>
				</p>
				<p>
					<label><span>输入新密码</span><input name="new_psd" type="password" /></label>
				</p>
				<p>
					<label><span>再次新密码</span><input name="new_psd_again" type="password" /></label>
				</p>
				<input type="submit" value="提交" />
			</fieldset>
		</form>
	</div>
</div>
</body>	 
</html>